# **********************************************************************
#
# Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
#
# **********************************************************************

# Ice version 3.3.1
# Generated from file `AnalogIn.ice'

import Ice, IcePy, __builtin__

if not Ice.__dict__.has_key("_struct_marker"):
    Ice._struct_marker = object()
import TeRKCommon_ice

# Included module Ice
_M_Ice = Ice.openModule('Ice')

# Included module Glacier2
_M_Glacier2 = Ice.openModule('Glacier2')

# Included module peer
_M_peer = Ice.openModule('peer')

# Included module TeRK
_M_TeRK = Ice.openModule('TeRK')

# Start of module TeRK
__name__ = 'TeRK'

if not _M_TeRK.__dict__.has_key('AnalogInState'):
    _M_TeRK.AnalogInState = Ice.createTempClass()
    class AnalogInState(object):
        def __init__(self, analogInValues=None):
            self.analogInValues = analogInValues

        def __hash__(self):
            _h = 0
            if self.analogInValues:
                for _i0 in self.analogInValues:
                    _h = 5 * _h + __builtin__.hash(_i0)
            return _h % 0x7fffffff

        def __cmp__(self, other):
            if other == None:
                return 1
            if self.analogInValues < other.analogInValues:
                return -1
            elif self.analogInValues > other.analogInValues:
                return 1
            return 0

        def __str__(self):
            return IcePy.stringify(self, _M_TeRK._t_AnalogInState)

        __repr__ = __str__

    _M_TeRK._t_AnalogInState = IcePy.defineStruct('::TeRK::AnalogInState', AnalogInState, (), (('analogInValues', (), _M_TeRK._t_ShortArray),))

    _M_TeRK.AnalogInState = AnalogInState
    del AnalogInState

if not _M_TeRK.__dict__.has_key('AnalogInController'):
    _M_TeRK.AnalogInController = Ice.createTempClass()
    class AnalogInController(_M_TeRK.AbstractCommandController):
        def __init__(self):
            if __builtin__.type(self) == _M_TeRK.AnalogInController:
                raise RuntimeError('TeRK.AnalogInController is an abstract class')

        def ice_ids(self, current=None):
            return ('::Ice::Object', '::TeRK::AbstractCommandController', '::TeRK::AnalogInController', '::TeRK::PropertyManager')

        def ice_id(self, current=None):
            return '::TeRK::AnalogInController'

        def ice_staticId():
            return '::TeRK::AnalogInController'
        ice_staticId = staticmethod(ice_staticId)

        #
        # Operation signatures.
        #
        # def getState(self, current=None):

        def __str__(self):
            return IcePy.stringify(self, _M_TeRK._t_AnalogInController)

        __repr__ = __str__

    _M_TeRK.AnalogInControllerPrx = Ice.createTempClass()
    class AnalogInControllerPrx(_M_TeRK.AbstractCommandControllerPrx):

        def getState(self, _ctx=None):
            return _M_TeRK.AnalogInController._op_getState.invoke(self, ((), _ctx))

        def getState_async(self, _cb, _ctx=None):
            return _M_TeRK.AnalogInController._op_getState.invokeAsync(self, (_cb, (), _ctx))

        def checkedCast(proxy, facetOrCtx=None, _ctx=None):
            return _M_TeRK.AnalogInControllerPrx.ice_checkedCast(proxy, '::TeRK::AnalogInController', facetOrCtx, _ctx)
        checkedCast = staticmethod(checkedCast)

        def uncheckedCast(proxy, facet=None):
            return _M_TeRK.AnalogInControllerPrx.ice_uncheckedCast(proxy, facet)
        uncheckedCast = staticmethod(uncheckedCast)

    _M_TeRK._t_AnalogInControllerPrx = IcePy.defineProxy('::TeRK::AnalogInController', AnalogInControllerPrx)

    _M_TeRK._t_AnalogInController = IcePy.defineClass('::TeRK::AnalogInController', AnalogInController, (), True, None, (_M_TeRK._t_AbstractCommandController,), ())
    AnalogInController.ice_type = _M_TeRK._t_AnalogInController

    AnalogInController._op_getState = IcePy.Operation('getState', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, (), (), (), _M_TeRK._t_AnalogInState, ())

    _M_TeRK.AnalogInController = AnalogInController
    del AnalogInController

    _M_TeRK.AnalogInControllerPrx = AnalogInControllerPrx
    del AnalogInControllerPrx

# End of module TeRK
